package com.whq.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.whq.dao.BasicServicecityMapper;
import com.whq.entity.BasicServicecity;
import com.whq.service.BasicServicecityService;

@Service(value = "tcBasicServicecityService")
public class BasicServicecityServiceImpl implements BasicServicecityService {

    @Autowired
    private BasicServicecityMapper<BasicServicecity>tcBasicServicecityMapper;
    
    @Override
    public Integer insertSelective(BasicServicecity tcBasicServicecity) throws Exception {
           return this.tcBasicServicecityMapper.insertSelective(tcBasicServicecity);
        }

    @Override
    public Integer insertBatch(List<BasicServicecity> tcBasicServicecity) throws Exception {
           return this.tcBasicServicecityMapper.insertBatch(tcBasicServicecity) ;
        }

    @Override
    public Integer deleteByPrimaryKey(Object id) {
            return this.tcBasicServicecityMapper.deleteByPrimaryKey(id);
    }

    public Integer deleteBatchByPrimaryKey(List<Object> ids) {
           return this.tcBasicServicecityMapper.deleteBatchByPrimaryKey(ids);
    }

    @Override
    public Integer updateByPrimaryKeySelective(BasicServicecity tcBasicServicecity) {
           return this.tcBasicServicecityMapper.updateByPrimaryKeySelective(tcBasicServicecity);
    }

    @Override
    public BasicServicecity findById(Object id) {
           return (BasicServicecity) this.tcBasicServicecityMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<BasicServicecity> selectByCondition(BasicServicecity tcBasicServicecity) {
           return (List<BasicServicecity>) this.tcBasicServicecityMapper.selectByCondition(tcBasicServicecity);
    }

    @Override
    public Integer selectCountByCondition(BasicServicecity tcBasicServicecity) {
           return  this.tcBasicServicecityMapper.selectCountByCondition(tcBasicServicecity);
    }

}
